package ren.kane.asdppp.transaction.employee;

import ren.kane.asdppp.classification.HourlyClassification;
import ren.kane.asdppp.classification.PaymentClassification;
import ren.kane.asdppp.schedule.PaymentSchedule;
import ren.kane.asdppp.schedule.WeeklySchedule;

/**
 * @author renrk(1275) on 2019-04-09 7:02 PM
 **/
public class AddHourlyEmployee extends AddEmployeeTransaction {

    private double hourlyRate;

    public AddHourlyEmployee() {
    }

    public AddHourlyEmployee(int empId, String name, String address, double hourlyRate) {
        super(empId, name, address);
        this.hourlyRate = hourlyRate;
    }

    @Override
    protected PaymentClassification getClassification() {
        return new HourlyClassification(hourlyRate);
    }

    @Override
    protected PaymentSchedule getSchedule() {
        return new WeeklySchedule();
    }
}
